package lab02.test11;

public class Test11 {
    public static void main(String[] args) {
        Rectangle r1 = new Rectangle();
        System.out.println("矩形：");
        r1.width = 5.0;
        r1.length = 6.0;
        r1.printMyWay();
        System.out.println("\n");
        System.out.println("正方形：");
        Square s1 = new Square();
        s1.length = 4;
        s1.width = 4;
        s1.printMyWay();
    }
}
